package com.gbas.model;

import java.util.HashMap;
import java.util.Map;

/**
 * User: t50
 * Date: 07-abr-2010
 * Time: 2:31:09
 */
public enum PALO {
    OROS("m"), COPAS("c"), ESPADAS("s"), BASTOS("b"), SINPALO("");

    static final Map<String, String> namePalo = new HashMap<String, String>();

    static {
        namePalo.put("m", "Oros");
        namePalo.put("c", "Copas");
        namePalo.put("s", "Espadas");
        namePalo.put("b", "Bastos");
        namePalo.put("", "");
    }


    String cartExtension;

    PALO(String s) {
        cartExtension = s;
    }

    public String getCartExtension() {
        return cartExtension;
    }

    @Override
    public String toString() {
        return namePalo.get(cartExtension);
    }
}
